package com.atguigu.spzx.manager.mapper;

import com.atguigu.spzx.model.entity.brand.Brand;
import com.atguigu.spzx.model.entity.category.CategoryBrand;
import com.atguigu.spzx.model.vo.category.CategoryBrandVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * title:
 * author: zgl
 * date: 2024/1/5
 * description：
 */
@Mapper
public interface CategoryBrandMapper {
    List<CategoryBrandVo> selectByPage(CategoryBrand categoryBrand);

    void deleteCategoryBrand(Long id);

    void saveCategoryBrand(CategoryBrand categoryBrand);

    void updateCategoryBrand(CategoryBrand categoryBrand);

    CategoryBrand getCategoryBrand(Long id);

    List<Brand> getBrandByCategoryId(Long categoryId);
}
